<!DOCTYPE html>
            
<HTML>
<HEAD>
<meta name="booktitle" content="Developing Applications With Objective Caml" >
 <meta charset="ISO-8859-1"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<META name="GENERATOR" content="hevea 1.05-7 of 2000-02-24">
<META NAME="Author" CONTENT="Christian.Queinnec@lip6.fr">
<LINK rel=stylesheet type="text/css" href="videoc-ocda.css">
<script language="JavaScript" src="videoc.js"><!--
//--></script>
<TITLE>
 Summary
</TITLE>
</HEAD>
<BODY class="regularBody">
<A HREF="book-ora090.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A>
<A HREF="book-ora092.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H2> Summary</H2>
This chapter has presented the principal families of algorithms for
automatic memory reclamation with the goal of detailing those used in
Objective CAML. The Objective CAML garbage collector is an incremental garbage
collector with two generations. It uses <I>Mark</I>&amp;<I>Sweep</I> for the old generation,
and <I>Stop</I>&amp;<I>Copy</I> for the young generation. Two modules directly linked to the
garbage collector allow control of the evolution of the heap. The
<TT>Gc</TT> module allows analysis of the behavior of the garbage
collector and modification of certain parameters with the goal of
optimizing specific applications. With the <TT>Weak</TT> module one
can save in arrays values that are potentially reclaimable, but which
are still accessible. This module is useful for implementing a memory
cache.<BR>
<BR>
<HR>
<A HREF="book-ora090.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A>
<A HREF="book-ora092.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>
